package pl.swspiz;


import java.sql.*;
import java.util.*;

public class ConnectionManager {
    
static Connection con;
static String url;
        
    
public static Connection getConnection()
{
        
   try
    {
      String url = "jdbc:postgresql://bazy.kil.swspiz.pl:5432/bdz10_1_5";
      String username = "bdz10_1_5";
      String password = "Mq2wTacg";


      Class.forName("org.postgresql.Driver");
            
        try
        {            	
          con = DriverManager.getConnection(url,username,password); 
                      
         }
            
            catch (SQLException ex)
            {
                ex.printStackTrace();
            }
        }
        catch(ClassNotFoundException e)
        {
            System.out.println(e);
        }
        return con;
    }

}
